package com.weimall.pojo;

import java.util.ArrayList;
import java.util.List;

public class GgTbLsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GgTbLsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCzybmIsNull() {
            addCriterion("CZYBM is null");
            return (Criteria) this;
        }

        public Criteria andCzybmIsNotNull() {
            addCriterion("CZYBM is not null");
            return (Criteria) this;
        }

        public Criteria andCzybmEqualTo(String value) {
            addCriterion("CZYBM =", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotEqualTo(String value) {
            addCriterion("CZYBM <>", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmGreaterThan(String value) {
            addCriterion("CZYBM >", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmGreaterThanOrEqualTo(String value) {
            addCriterion("CZYBM >=", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmLessThan(String value) {
            addCriterion("CZYBM <", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmLessThanOrEqualTo(String value) {
            addCriterion("CZYBM <=", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmLike(String value) {
            addCriterion("CZYBM like", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotLike(String value) {
            addCriterion("CZYBM not like", value, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmIn(List<String> values) {
            addCriterion("CZYBM in", values, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotIn(List<String> values) {
            addCriterion("CZYBM not in", values, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmBetween(String value1, String value2) {
            addCriterion("CZYBM between", value1, value2, "czybm");
            return (Criteria) this;
        }

        public Criteria andCzybmNotBetween(String value1, String value2) {
            addCriterion("CZYBM not between", value1, value2, "czybm");
            return (Criteria) this;
        }

        public Criteria andBbnameIsNull() {
            addCriterion("BBName is null");
            return (Criteria) this;
        }

        public Criteria andBbnameIsNotNull() {
            addCriterion("BBName is not null");
            return (Criteria) this;
        }

        public Criteria andBbnameEqualTo(String value) {
            addCriterion("BBName =", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameNotEqualTo(String value) {
            addCriterion("BBName <>", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameGreaterThan(String value) {
            addCriterion("BBName >", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameGreaterThanOrEqualTo(String value) {
            addCriterion("BBName >=", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameLessThan(String value) {
            addCriterion("BBName <", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameLessThanOrEqualTo(String value) {
            addCriterion("BBName <=", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameLike(String value) {
            addCriterion("BBName like", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameNotLike(String value) {
            addCriterion("BBName not like", value, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameIn(List<String> values) {
            addCriterion("BBName in", values, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameNotIn(List<String> values) {
            addCriterion("BBName not in", values, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameBetween(String value1, String value2) {
            addCriterion("BBName between", value1, value2, "bbname");
            return (Criteria) this;
        }

        public Criteria andBbnameNotBetween(String value1, String value2) {
            addCriterion("BBName not between", value1, value2, "bbname");
            return (Criteria) this;
        }

        public Criteria andLsIsNull() {
            addCriterion("LS is null");
            return (Criteria) this;
        }

        public Criteria andLsIsNotNull() {
            addCriterion("LS is not null");
            return (Criteria) this;
        }

        public Criteria andLsEqualTo(Integer value) {
            addCriterion("LS =", value, "ls");
            return (Criteria) this;
        }

        public Criteria andLsNotEqualTo(Integer value) {
            addCriterion("LS <>", value, "ls");
            return (Criteria) this;
        }

        public Criteria andLsGreaterThan(Integer value) {
            addCriterion("LS >", value, "ls");
            return (Criteria) this;
        }

        public Criteria andLsGreaterThanOrEqualTo(Integer value) {
            addCriterion("LS >=", value, "ls");
            return (Criteria) this;
        }

        public Criteria andLsLessThan(Integer value) {
            addCriterion("LS <", value, "ls");
            return (Criteria) this;
        }

        public Criteria andLsLessThanOrEqualTo(Integer value) {
            addCriterion("LS <=", value, "ls");
            return (Criteria) this;
        }

        public Criteria andLsIn(List<Integer> values) {
            addCriterion("LS in", values, "ls");
            return (Criteria) this;
        }

        public Criteria andLsNotIn(List<Integer> values) {
            addCriterion("LS not in", values, "ls");
            return (Criteria) this;
        }

        public Criteria andLsBetween(Integer value1, Integer value2) {
            addCriterion("LS between", value1, value2, "ls");
            return (Criteria) this;
        }

        public Criteria andLsNotBetween(Integer value1, Integer value2) {
            addCriterion("LS not between", value1, value2, "ls");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}